package com.zhaowei.allinpay.order;

import com.zhaowei.allinpay.DemoUtils;
import com.zhaowei.allinpay.IDemoHandler;
import org.json.JSONObject;

public class WithdrawApplyHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {
        String bizOrderNo = System.currentTimeMillis() + "tx";

        JSONObject quickPayH5 = new JSONObject();
        quickPayH5.put("bankCardNo", DemoUtils.rsaEncrypt("6228480000666022208"));
        quickPayH5.put("amount", 2);
        
        
        JSONObject tltpay = new JSONObject();
        tltpay.put("payTypeName", "withdraw_tlt");
        tltpay.put("unionBank", "01035200");
        JSONObject payMethod = new JSONObject();
      ///  payMethod.put("QUICKPAY_H5", quickPayH5);
        payMethod.put("WITHDRAW_TLT", tltpay);


        JSONObject param = new JSONObject();
        param.put("bizOrderNo", bizOrderNo);
        param.put("bizUserId", "company13");
        param.put("accountSetNo", "200001");
        param.put("amount", 80);
        param.put("fee", 0);
        param.put("validateType", 1);
        param.put("backUrl", "http://122.227.225.142:23661/test/recievePayBack.jsp");
//        param.put("ordErexpireDatetime", "");
        param.put("payMethod", payMethod);
        param.put("bankCardNo", DemoUtils.rsaEncrypt("6228481111111112222"));
        param.put("bankCardPro", 0);
        param.put("withdrawType", "D0customized");
        param.put("industryCode", "1010");
        param.put("industryName", "保险行业");
        param.put("source", 2);
        param.put("summary", "testtest_summar");
//        param.put("extendInfo", "");

        return param;
    }
}
